<?php
/**
 * Created by PhpStorm.
 * User: d7
 * Date: 2016/2/1
 * Time: 10:22
 */

$config = array(
    'image_type'    =>array(
        'lecturer'  => '讲师',
        'activity'  =>  '活动',
        'article'   =>  '文章',
        'place'     =>  '场地',
    ),
    'lecturer'  =>  array(
        'file_path' => 'lecturer',
        'allowed_types' => 'jpg|jpeg|gif|png',
        'max_size' => 2*1024*1024,
        'max_width' => 0,
        'max_height' => 0,
        'model'=>'Lecturer_model',
        'model_path'=>'lecturer/Lecturer_model',
        'field'=>'avatar',
        'thumbs'=>array(
            'small' => array(
                100, 100, 1, 0
            ),
            'middle' => array(
                400, 250, 1, 0
            ),
            'big' => array(
                600, 600, 0, 1
            ),
        )
    ),
    'activity'  =>  array(
        'file_path' => 'activity',
        'allowed_types' => 'jpg|jpeg|gif|png',
        'max_size' => 2*1024*1024,
        'max_width' => 0,
        'max_height' => 0,
        'model'=>'Activities_model',
        'model_path'=>'activities/Activities_model',
        'field'=>'avatar',
        'thumbs'=>array(
            'small' => array(
                100, 100, 1, 0
            ),
            'middle' => array(
                400, 250, 1, 0
            ),
            'big' => array(
                600, 600, 0, 1
            ),
        )
    ),
    'article'  =>  array(
        'file_path' => 'article',
        'allowed_types' => 'jpg|jpeg|gif|png',
        'max_size' => 2*1024*1024,
        'max_width' => 0,
        'max_height' => 0,
        'model'=>'Article_model',
        'model_path'=>'Article_model',
        'field'=>'cover',
        'thumbs'=>array(
            'small' => array(
                100, 100, 1, 0
            ),
            'middle' => array(
                400, 250, 1, 0
            ),
            'big' => array(
                600, 600, 0, 1
            ),
        )
    ),
    'place' =>  array(
        'file_path' => 'place',
        'allowed_types' => 'jpg|jpeg|gif|png',
        'max_size' => 2*1024*1024,
        'max_width' => 0,
        'max_height' => 0,
        'model'=>'Place_model',
        'model_path'=>'place/Place_model',
        'field'=>'cover',
        'thumbs'=>array(
            'small' => array(
                100, 100, 1, 0
            ),
            'middle' => array(
                400, 250, 1, 0
            ),
            'big' => array(
                600, 600, 0, 1
            ),
        )
    )
);